package org.javia.animalfarm;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import android.widget.LinearLayout.LayoutParams;

public class MainActivity extends Activity {
    @Override
    public void onCreate(Bundle icicle) {
        super.onCreate(icicle);
        //requestWindowFeature(Window.FEATURE_NO_TITLE);
        setContentView(R.layout.main);
        ViewGroup parent = (ViewGroup) findViewById(R.id.animals);
        LayoutParams layout = new LinearLayout.LayoutParams(0, LayoutParams.FILL_PARENT, 1);
        final int icons[] = {R.drawable.rabbit, R.drawable.sheep, R.drawable.pig, R.drawable.sheep_grey,
        		R.drawable.sheep_grey, R.drawable.sheep_grey, R.drawable.sheep_grey};
        for (int i = 0; i < 7; ++i) {        	
        	View animal = new AnimalView(this, i, icons[i]);
            parent.addView(animal, layout);
        }        
        setTitle("Animal Farm    Net Worth: 100    Age: 39");
    }
    
    @Override
    public void onPause() {
    	super.onPause();
    	
    }
}